package com.xszx.server.mapper;

import com.xszx.server.dto.Page;
import com.xszx.server.entity.RoleUser;
import com.xszx.server.entity.User;

import java.util.List;

public interface RoleUserMapper {
    //查询全部的大章
    List<RoleUser> findAll(Page page);

    //统计当前表中的数据条数
    int findCount();
    int deleteByPrimaryKey(String id);

    int deleteByRoleId(String roleId);

    int insert(RoleUser record);

    int insertSelective(RoleUser record);

    RoleUser selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(RoleUser record);

    int updateByPrimaryKey(RoleUser record);

    List<String> findUsersByRoleId(String roleId);
}
